<template>
    <h2>Store(仓库)基本使用</h2>
    <span>(类似于选项式Api)当前数字为：{{ numberStore.count }}</span>
    <br>
    <span>计算后的结果：{{ numberStore.doubleCount }}</span>
    <br>
    <button @click="numberStore.AddCount">count++</button>
</template>

<script setup lang="ts">
import { useNumberStore } from '../store/index.ts';

//创建仓库实例
const numberStore = useNumberStore();

</script>